package com.websocet.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Arrays;
import java.util.Objects;

/**
 * @Author: 陈玉鹏
 * @Description: TODO
 * @DateTime: 2023/2/21 23:05
 */
@Data
@ToString
public class B {
    private String name;
    private String value;

    public B(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public static void main(String[] args) {
        String url = "ewewq,dfjskdf,454rfd,4r345";
        String[] split = url.split(",");
        Arrays.stream(split).forEach(item -> {
            System.out.println(item);
        });
        for (String s : split) {
            System.out.println(s);
        }
    }
}
